Skip to content

[5.x] Fix whereNotIn error with nulls#13266

Merged
jasonvarga merged 2 commits into
5.xfrom
fix-13255
Dec 8, 2025
Merged

[5.x] Fix whereNotIn error with nulls#13266
jasonvarga merged 2 commits into
5.xfrom
fix-13255

Conversation

@jasonvarga

@jasonvarga jasonvarga commented Dec 5, 2025

Copy link
Copy Markdown
Member

The error described in #13255 is introduced by the conversion to a lookup table in #12894.

The performance improvement was the change to a lookup table.
However if your values contained a null this would fail since you can't have a null key.

This PR maintains the lookup table by replacing null with a placeholder __NULL__ string.

Fixes #13255

@jasonvarga

Copy link
Copy Markdown
Member Author

@hastinbe maybe you'd like to run your eyes over this.

@hastinbe

hastinbe commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

@hastinbe maybe you'd like to run your eyes over this.

I like the solution. I added tests hastinbe@abd91a5 feel free to cherry-pick

Co-authored-by: Beau Hastings <beau@saweet.net>
@jasonvarga jasonvarga merged commit 6001f9f into 5.x Dec 8, 2025
27 checks passed
@jasonvarga jasonvarga deleted the fix-13255 branch December 8, 2025 15:15
@jasonvarga

Copy link
Copy Markdown
Member Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error after upgrading to 5.70.0 array_flip(): Can only flip string and integer values, entry skipped

2 participants